import 'package:flutter/material.dart';

class RankingPage extends StatefulWidget {
  String text = "";
  Color? color;

  RankingPage({super.key, required this.text, this.color});

  @override
  State<StatefulWidget> createState() => _RankingPageState();
}

class _RankingPageState extends State<RankingPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(color: widget.color),
      child: Center(
          child: Text(
        widget.text,
        style: const TextStyle(color: Colors.black, fontSize: 24.0),
      )),
    );
  }
}
